package com.bazhua.bazo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bazhua.bazo.repository.entity.BannerInfo;
import com.bazhua.bazo.repository.model.BannerSearch;
import com.bazhua.bazo.repository.model.result.BaseSearchModel;
import com.bazhua.bazo.repository.model.result.CommonResult;
import com.bazhua.bazo.repository.model.result.PageListResult;

import java.io.InputStream;
import java.util.List;

public interface IBannerService extends IService<BannerInfo> {

    CommonResult GetBannerList();

    CommonResult UploadBanner(String fileName, InputStream stream);

    CommonResult DeleteBanner(List<Long> bannerIds);

    CommonResult saveBanner(BannerInfo bannerInfo);

    PageListResult GetBannerPage(BannerSearch search);
}
